package com.atguigu.map;

import java.util.Arrays;
import java.util.List;

/**
 * @program: IDEAcode
 * @description:
 * @author: Mr.zjx
 * create: 2021-08-16-18-12
 **/
public class ArrayToCollectionTest {
    public static void main(String[] args) {
        //数组转集合
        List<Integer> list = Arrays.asList(1, 5, 3, 9, 4, 7);
        list.set(0,100);
        //增强for遍历集合
        for (Integer i : list){
            System.out.println(i);
        }
    }
}
